package com.company.statis.feign;

import com.company.statis.feign.Impl.UserServiceDegrade;
import com.company.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-user", fallback = UserServiceDegrade.class)
@Component
public interface UserFeignService {

    //查询一天的注册人数
    @GetMapping("/educenter/member/countRegister/{day}")
    public Integer getRegisterCount(@PathVariable("day") String day);

}
